// CylonEyes ACW
// Joe Pardue April 11, 2009

#include "libACW001.h"

int main(void)
{
	init();		// Initialize the private stuff
	setup();	// Setup the public stuff

	for(;;)		// Call loop() forever
		loop();

	return 0;	// You never get here

}

void setup()
{
  // Init port pins
  DDRB = 0x00;  // set port B for input
  DDRD = 0xFF;  // set port D for output
}

void loop()
{
  for(int i = 1; i < 128; i = i*2)
  {
    PORTD = i;
    delay(128);
  }
  
  for(int i = 128; i > 1; i -= i/2)
  {
    PORTD = i;
    delay(128);
  }
}
